<template>
    <div class="flow-form-box">
        <div class="form-item">
            <div class="label">产权名称</div>
            <div class="value">一种基于内摆线啮合原理的用于油井的减速机</div>
        </div>
        <div class="form-item">
            <div class="label">产权编号</div>
            <div class="value">202110411583.7</div>
        </div>

        <div class="form-item">
            <div class="label">第一作者</div>
            <div class="value">孟碧霞</div>
        </div>
        <div class="form-item">
            <div class="label">第二作者</div>
            <div class="value">无</div>
        </div>
        <div class="form-item">
            <div class="label">工作量</div>
            <div class="value">120.0</div>
        </div>
    </div>
</template>
<script setup></script>
<style lang="less" scoped>
@import "@/styles/variables.module.less";
@FormLabelWidth: 84px;

.flow-form-box {
    padding: 10px 0;

    .form-item {
        font-size: 14px;
        display: flex;

        +.form-item {
            margin-top: 12px;
        }

        .label {
            color: #9ba5b3;
            width: @FormLabelWidth;
            white-space: nowrap;
            overflow: hidden;
            text-align: right;
            margin-right: 16px;
            flex-shrink: 0;
        }

        .value {
            color: #1d2129;
            display: flex;
            align-items: flex-start;
            width: calc(100% - @FormLabelWidth - 16px);
            word-wrap: anywhere;
            word-break: break-all;
        }

        .detail-value {
            display: block;
        }

        .link {
            color: #1d2129;
            text-decoration: none;
            cursor: pointer;

            &:hover {
                color: #165cfd;
                text-decoration: underline;
            }
        }
    }

    .flow-inst-list {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, @FlowCardWidth);
        gap: 8px;
    }

    .img-preview {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;

        img {
            width: 40px;
            height: 40px;
            cursor: pointer;
        }
    }

    .attachment-box {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;

        .attachment-item {
            background-color: #f7f8fa;
            display: flex;
            align-items: center;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 13px;
        }
    }

    .form-detail {
        margin-top: 8px;
        border: 1px dashed #e1e1e1;
        border-radius: var(--border-radius-small);

        .detail-title {
            color: var(--color-text-3);
            background-color: #f9fafa;
            padding: 2px;
        }

        .label {
            margin-top: 8px;
        }
    }
}
</style>
